from expiringdict import ExpiringDict
cache_dict = ExpiringDict(max_len=1000000, max_age_seconds=180000)